package com.open.capacity.finance.dao;

import com.open.capacity.finance.entity.AuditModelRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 审计模型预警规则
 *
 * @author
 * @email
 * @date 2023-02-01 11:48:18
 */
@Mapper
public interface AuditModelRuleDao {

    int save(AuditModelRule auditModelRule);

    int update(AuditModelRule auditModelRule);

    int delete(String id);

    AuditModelRule findById(String id);

    AuditModelRule findByConfKey(@Param("modelId") String modelId, @Param("confKey") String confKey);

    List<AuditModelRule> findByModelId(String modelId);

    List<AuditModelRule> findAll(Map<String, Object> params);

}
